﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Default" Title="设置中心" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/Default/Style/Calendar.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    我的首页
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <table>
        <tr>
            <td valign="top">
                <fieldset style="width: 140px">
                    <legend>WHO AM I</legend>
                    <table>
                        <tr>
                            <td colspan="2">
                                <asp:Image runat="server" ID="img_Face" Width="100px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                用户名：
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lab_UserName"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                部　门：
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lab_Dept"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                职　务：
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lab_Duty"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                角　色：
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lab_RoleName"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
            <td valign="top">
                <div class="action_bar">
                    <input type="button" value="增加待办事项" onclick="jskitBulter.redirect('Admin/Calendar/EditTodo.aspx')" />
                </div>
                <fieldset style="width: 810px">
                    <legend>今日计划 [<asp:Label runat="server" ID="lab_Today" Font-Bold="true" ForeColor="#ff5500"></asp:Label>]</legend>
                    <asp:GridView ID="gvTodo" runat="server" AutoGenerateColumns="false" CssClass="GridViewSmall"
                        DataKeyNames="TodoKey" ShowHeader="false" ShowFooter="false">
                        <Columns>
                            <asp:TemplateField HeaderText="类型">
                                <ItemTemplate>
                                    【<%# DataBinder.Eval(Container, "DataItem.TypeName")%>】
                                </ItemTemplate>
                                <ItemStyle Width="75px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="等级">
                                <ItemTemplate>
                                    <img width="16px" height="16px" src='/cellula_client/default/calendar/images/sign_<%# DataBinder.Eval(Container, "DataItem.TodoLevel")%>.png'
                                        alt='<%# DataBinder.Eval(Container, "DataItem.LevelName")%>' />
                                </ItemTemplate>
                                <ItemStyle />
                                <ItemStyle Width="16px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <a class='cal_list_link<%# DataBinder.Eval(Container, "DataItem.IfClose")%>' href='Admin/Calendar/TodoView.aspx?id=<%# DataBinder.Eval(Container, "DataItem.TodoKey")%>'>
                                        <%# DataBinder.Eval(Container, "DataItem.TodoTitle")%></a>
                                </ItemTemplate>
                                <ItemStyle />
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="GridViewSmallRow" />
                        <AlternatingRowStyle CssClass="GirdViewSmallAlternatingRow" />
                        <EmptyDataRowStyle CssClass="GridViewEmptyDataRow" />
                        <EmptyDataTemplate>
                            没有可用的数据</EmptyDataTemplate>
                    </asp:GridView>
                </fieldset>
                <fieldset style="width: 810px">
                    <legend>往日未完成的计划 (Lasted 10)</legend>
                    <asp:GridView ID="gvLastDays" runat="server" AutoGenerateColumns="false" CssClass="GridViewSmall"
                        DataKeyNames="TodoKey" ShowHeader="false" ShowFooter="false">
                        <Columns>
                            <asp:TemplateField HeaderText="类型">
                                <ItemTemplate>
                                    【<%# DataBinder.Eval(Container, "DataItem.TypeName")%>】
                                </ItemTemplate>
                                <ItemStyle Width="75px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="等级">
                                <ItemTemplate>
                                    <img width="16px" height="16px" src='/cellula_client/default/calendar/images/sign_<%# DataBinder.Eval(Container, "DataItem.TodoLevel")%>.png'
                                        alt='<%# DataBinder.Eval(Container, "DataItem.LevelName")%>' />
                                </ItemTemplate>
                                <ItemStyle Width="16px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <a class='cal_list_link<%# DataBinder.Eval(Container, "DataItem.IfClose")%>' href='Admin/Calendar/TodoView.aspx?id=<%# DataBinder.Eval(Container, "DataItem.TodoKey")%>'>
                                        <%# DataBinder.Eval(Container, "DataItem.TodoTitle")%></a> (<%# Convert.ToDateTime(DataBinder.Eval(Container, "DataItem.OccurDt")).ToString("MM月dd日 HH:mm")%>)
                                </ItemTemplate>
                                <ItemStyle />
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="GridViewSmallRow" />
                        <AlternatingRowStyle CssClass="GirdViewSmallAlternatingRow" />
                        <EmptyDataRowStyle CssClass="GridViewEmptyDataRow" />
                        <EmptyDataTemplate>
                            没有可用的数据</EmptyDataTemplate>
                    </asp:GridView>
                </fieldset>
            </td>
        </tr>
    </table>
</asp:Content>
